<html>
<head><meta charset="utf-8"><title>backtrace_symbols_fd not present in libc · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/backtrace_symbols_fd.20not.20present.20in.20libc.html">backtrace_symbols_fd not present in libc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220520122"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/backtrace_symbols_fd%20not%20present%20in%20libc/near/220520122" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vikram Pal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/backtrace_symbols_fd.20not.20present.20in.20libc.html#220520122">(Dec 20 2020 at 13:25)</a>:</h4>
<p><a href="https://man7.org/linux/man-pages/man3/backtrace.3.html">https://man7.org/linux/man-pages/man3/backtrace.3.html</a> - Based on  the information available here, I am trying to call the libc::backtrace_symbols_fd function but the compiler says, that the function is not available. Does libc does not contain this function? If it is not present in libc, is there any other way to call this function?</p>



<a name="220521143"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/backtrace_symbols_fd%20not%20present%20in%20libc/near/220521143" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tm <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/backtrace_symbols_fd.20not.20present.20in.20libc.html#220521143">(Dec 20 2020 at 13:52)</a>:</h4>
<p>It can be declared using <code>extern "C" { fn backtrace ... }</code> block. The function itself is non-standard, and available only in glibc, though.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>